package com.qf.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/ex")
public class ExController{
    @RequestMapping("/test01")
    public String test01(){
        try {
            int a=1/0;
        }catch (Exception e){
            return "/hello.jsp";
        }
        return "/form.jsp";
    }
    @RequestMapping("/test02")
    public String test02(){
        if (true){
            throw new RuntimeException();
        }
        return "/form.jsp";
    }
}
